import { defineConfig } from 'vite';
import uni from '@dcloudio/vite-plugin-uni';

export default defineConfig({
  plugins: [uni()],
  server: {
    // host: "localhost", 
    port: 5173,       
    proxy: {  
      "/api": {
        target: "http://47.96.22.12:18125",
        changeOrigin: true, 
        rewrite: (path) => path.replace(/^\/api/, ""),
      }
    }
  }
});
